package com.clkj.aimin.pojo.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;

/**
 * @author yawang
 */
@ApiModel( value ="t_cl_user" )
@Table( name ="t_cl_user" )
public class User  implements Serializable {

    @Id
   	@Column(name = "user_id",updatable = false )
	@ApiModelProperty( value="null")
	private Integer userId;

	/**
	 * 姓名
	 */
   	@Column(name = "user_name" )
	@ApiModelProperty( value="姓名")
	private String userName;

	/**
	 * 电话
	 */
   	@Column(name = "user_tel" )
	@ApiModelProperty( value="电话")
	private String userTel;

	/**
	 * 性别
	 */
   	@Column(name = "user_sex" )
	@ApiModelProperty( value="性别")
	private String userSex;

	/**
	 * 绑定的医生ID
	 */
   	@Column(name = "doctor_id" )
	@ApiModelProperty( value="绑定的医生ID")
	private Integer doctorId;

	/**
	 * 家庭医生团队ID
	 */
   	@Column(name = "family_id" )
	@ApiModelProperty( value="家庭医生团队ID")
	private Integer familyId;

	/**
	 * openId
	 */
   	@Column(name = "open_id" )
	@ApiModelProperty( value="openId")
	private String openId;

    /**
     * unionId
     */
    @Column(name = "unionId" )
    @ApiModelProperty( value="unionId")
    private String unionId;

    /**
     * 生日
     */
    @Column(name = "birth" )
    @ApiModelProperty( value="生日")
    private String birth;

    /**
     * 身份证号
     */
    @Column(name = "card_code" )
    @ApiModelProperty( value="身份证号")
    private String cardCode;

    /**
     * 用户身份 0为用户 1为医生 2为客服
     */
    @Column(name = "user_type" )
    @ApiModelProperty( value="用户身份 0为用户 1为医生 2为客服")
    private Integer userType;

    /**
     * 用户头像
     */
    @Column(name = "user_img" )
    @ApiModelProperty( value="用户头像")
    private String userImg;

    /**
     * 用户头像
     */
    @Column(name = "task_score" )
    @ApiModelProperty( value="任务积分数")
    private Integer taskScore;

    @Column(name = "parent_id" )
    @ApiModelProperty( value="家庭id 0为主账号,否则为家长id")
    private Integer parentId;

    @Column(name = "is_vip" )
    @ApiModelProperty( value="是否为会员 0为普通用户 1为会员'")
    private Integer isVip;

    @Column(name = "parent_code" )
    @ApiModelProperty( value="家庭码")
    private String parentCode;

    @Column(name = "vip_time" )
    @ApiModelProperty( value="会员过期时间")
    private String vipTime;

    @Column(name = "helper_id")
    @ApiModelProperty( value="助手id")
    private Integer helperId;
    /**
     * 加号剩余次数
     */
    @Column(name = "regist_num" )
    @ApiModelProperty( value="加号剩余次数")
    private Integer registNum;
    /**
     * 亲情就诊剩余次数
     */
    @Column(name = "love_num" )
    @ApiModelProperty( value="亲情就诊剩余次数")
    private Integer loveNum;

    /**
     * 密码
     */
    @Column(name = "password" )
    @ApiModelProperty( value="密码")
    private String  password;

    @Transient
    @ApiModelProperty( value="医助名称，临时数据")
    private String helperName;

    @Transient
    @ApiModelProperty( value="医助名称，临时数据")
    private String doctorName;

    public Integer getRegistNum() {
        return registNum;
    }

    public void setRegistNum(Integer registNum) {
        this.registNum = registNum;
    }

    public Integer getLoveNum() {
        return loveNum;
    }

    public void setLoveNum(Integer loveNum) {
        this.loveNum = loveNum;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Integer getIsVip() {
        return isVip;
    }

    public void setIsVip(Integer isVip) {
        this.isVip = isVip;
    }

    public String getParentCode() {
        return parentCode;
    }

    public void setParentCode(String  parentCode) {
        this.parentCode = parentCode;
    }

    public String getVipTime() {
        return vipTime;
    }

    public void setVipTime(String vipTime) {
        this.vipTime = vipTime;
    }

    public Integer getUserId() {
    return userId;
  }

  public void setUserId(Integer userId) {
    this.userId = userId;
  }


  public String getUserName() {
    return userName;
  }

  public void setUserName(String userName) {
    this.userName = userName;
  }


  public String getUserTel() {
    return userTel;
  }

  public void setUserTel(String userTel) {
    this.userTel = userTel;
  }


  public String getUserSex() {
    return userSex;
  }

  public void setUserSex(String userSex) {
    this.userSex = userSex;
  }


  public Integer getDoctorId() {
    return doctorId;
  }

  public void setDoctorId(Integer doctorId) {
    this.doctorId = doctorId;
  }


  public Integer getFamilyId() {
    return familyId;
  }

  public void setFamilyId(Integer familyId) {
    this.familyId = familyId;
  }


  public String getOpenId() {
    return openId;
  }

  public void setOpenId(String openId) {
    this.openId = openId;
  }

    public Integer getUserType() {
        return userType;
    }

    public void setUserType(Integer userType) {
        this.userType = userType;
    }

    public String getBirth() {
        return birth;
    }

    public void setBirth(String birth) {
        this.birth = birth;
    }

    public String getCardCode() {
        return cardCode;
    }

    public void setCardCode(String cardCode) {
        this.cardCode = cardCode;
    }

    public String getUserImg() {
        return userImg;
    }

    public void setUserImg(String userImg) {
        this.userImg = userImg;
    }


    public Integer getTaskScore() {
        return taskScore;
    }

    public void setTaskScore(Integer taskScore) {
        this.taskScore = taskScore;
    }

    public Integer getHelperId() {
        return helperId;
    }

    public void setHelperId(Integer helperId) {
        this.helperId = helperId;
    }

    public String getHelperName() {
        return helperName;
    }

    public void setHelperName(String helperName) {
        this.helperName = helperName;
    }

    public String getDoctorName() {
        return doctorName;
    }

    public void setDoctorName(String doctorName) {
        this.doctorName = doctorName;
    }

    public String getUnionId() {
        return unionId;
    }

    public void setUnionId(String unionId) {
        this.unionId = unionId;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }


}
